package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zksk.common.core.web.domain.BaseEntity;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 用户业绩表
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-15
 */
@Data
@Accessors(chain = true)
@TableName("platform_fact_member_score")
@ApiModel(value = "MemberScore对象", description = "用户业绩表")
public class MemberScore extends BaseEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("用户编号")
    @TableField("member_id")
    private Long memberId;

    @ApiModelProperty("项目编号")
    @TableField("project_code")
    private String projectCode;

    @ApiModelProperty("项目名称")
    @TableField("project_name")
    private String projectName;

    @ApiModelProperty("中标金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty("中标时间")
    @TableField("`time`")
    private LocalDateTime time;

    @ApiModelProperty("中标通知书")
    @TableField("notice")
    private String notice;

    @ApiModelProperty("中标公告地址")
    @TableField("notice_url")
    private String noticeUrl;

    @ApiModelProperty("采购协议合同")
    @TableField("buy_agreement")
    private String buyAgreement;

    @ApiModelProperty("验收报告")
    @TableField("check_report")
    private String checkReport;

    @ApiModelProperty("删除标识（0 正常 2删除）")
    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String MEMBER_ID = "member_id";

    public static final String PROJECT_CODE = "project_code";

    public static final String PROJECT_NAME = "project_name";

    public static final String AMOUNT = "amount";

    public static final String TIME = "time";

    public static final String NOTICE = "notice";

    public static final String NOTICE_URL = "notice_url";

    public static final String BUY_AGREEMENT = "buy_agreement";

    public static final String CHECK_REPORT = "check_report";

    public static final String DEL_FLAG = "del_flag";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
